package me.zhengjie.minbearwcs.dao.storage.inf;

import me.zhengjie.minbearwcs.entity.PO.wcs.storage.SmallStorage;

import java.util.List;

public interface SmallStorageDao {
    boolean updateInboundFreezePallet(Integer id,String freezePallet);

    String selectSmallStorageCodeByQrPoint(String qrPoint);

    boolean updatePalletCodeByQrPoint(String qrPoint,String PalletCode);

    String selectPalletCodeByQrpoint(String qrPoint);

    boolean judgeStorageCanUseByQrPoint(String qrPoint);

    boolean clearStoragePallet(String smallStorageCode);

    boolean updatePalletCodeAndClearInboundFreeze(String smallStorageCode,String palletCode);

    List<SmallStorage> selectSmallStorageByMediunStorage(String medium);

    String selectMediumStorageByQrPoint(String qrPoint);

    SmallStorage selectOneCanUseSmallStorageByMediunStorage(String medium);

    SmallStorage selectBySmallStorage(String smallStorage);

    boolean updateOutboundFreezeBySmallStorageCode(String smallStorage, String outboundFreezePallet);

    boolean updateInboundFreezePallet(String smallStorage,String freezePallet);

    boolean onlyCLearPalletCode(String smallStorage);

    SmallStorage selectByQrCode(String qrCode);

    boolean insert(SmallStorage smallStorage);

    boolean clear();

    SmallStorage selectByPallet(String palletCode);

    SmallStorage selectByInboundFreezePallet(String palletCode);

    SmallStorage selectByOutboundFreezePallet(String palletCode);

    SmallStorage selectPalletIsInStock(String palletCode);

    List<SmallStorage> selectList();

    boolean clearOutboundFreeze(String smallStorageCode);
}
